﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SmallERP.PrintManage
{
    public partial class FrmPriority : Form
    {
        private int _priority;
        public int Priority
        {
            get
            {
                return _priority;
            }
        }

        public FrmPriority()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            _priority = this.comboBox1.SelectedIndex + 1;
            DialogResult = DialogResult.OK;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FrmPriority_Load(object sender, EventArgs e)
        {
            InniCombox();
        }
        private void InniCombox()
        {
            this.comboBox1.Properties.Items.Add("加急级别1");
            this.comboBox1.Properties.Items.Add("加急级别2");
            this.comboBox1.Properties.Items.Add("加急级别3");
            this.comboBox1.Properties.Items.Add("加急级别4");
            this.comboBox1.Properties.Items.Add("加急级别5");
            this.comboBox1.Properties.Items.Add("加急级别6");
            this.comboBox1.Properties.Items.Add("加急级别7");
            this.comboBox1.Properties.Items.Add("加急级别8");
            this.comboBox1.Properties.Items.Add("加急级别9");
            this.comboBox1.Properties.Items.Add("加急级别10");
            this.comboBox1.SelectedIndex = 0;
        }
    }
}
